<template>
  <div>
    <TypeNav />
    <ListContainer />
    <Recommend />
    <Rank />
    <Like />
    <Floor v-for="(floor ,index) in floorList" :key="floor.id" :list="floor"/>
    <Brank />
  </div>
</template>

<script>
import ListContainer from "./ListContainer";
import Recommend from "./Recommend";
import Rank from "./Rank";
import Like from "./Like";
import Floor from "./Floor";
import Brank from "./Brand";
//引入仓库数据
import {mapState} from 'vuex';

export default {
  components: {
    ListContainer,
    Recommend,
    Rank,
    Like,
    Floor,
    Brank,
  },
  mounted() {
    this.$store.dispatch("getFloorList");
    this.$store.dispatch("getUserInfo");
  },
  computed:{
        ...mapState({
            floorList:state=>state.home.floorList
        })
    },
};
</script>

<style scoped>
</style>